import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

/**
 * @Author penglai
 * @Date 2017/1/20.
 */
public class Log4jDemo {

  protected static Logger logger = LogManager.getLogger(Log4jDemo.class.getName());

  public static void main(String[] args) {
    logger.warn("使用log4j-to-slf4j替换log4j-core");
    logger.info("info message");
  }
}
